package com.itheima02;

import java.util.Scanner;

public class Work06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的姓名:");
        String s1 = sc.nextLine();
        System.out.println("请输入您的年龄:");
        String s2 = sc.nextLine();
        System.out.println("请输入您的身高:");
        String s3 = sc.nextLine();
        System.out.println("请输入您婚否:");
        String s4 = sc.nextLine();
        System.out.println("请输入您的性别:");
        String s5 = sc.nextLine();


        int a = Integer.parseInt(s2);
        System.out.println(s2);
        double b = Double.parseDouble(s3);
        boolean c = Boolean.parseBoolean(s4);
        char d = (char) (s5.charAt(0));
        System.out.println(d);
        Student2 str = new Student2(s1, a, b, c, d);
        System.out.println("姓名:" + str.getName() + "  年龄:" + str.getAge() + "  身高:" + str.getHight() + "  婚否:" + str.isHunFou() +
                "  性别:" + str.getXingbie());
    }


}
